package Xuanke;

public class Teacher {
    public int code;
    public String name;
    public String sex;
    public String lesson;


    public Teacher(int code,String name,String sex,String lesson){
        this.code=code;
        this.name=name;
        this.sex=sex;
        this.lesson=lesson;
    }

    public String toString() {
       return "教师信息:" + "  编号：" + code + " 姓名：" + name + " 性别：" + sex + " 所授课程：" + lesson;
   }

}

